import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'main',
      component: () => import('@/views/MainPage.vue'),
    },
    {
      path: '/vue',
      name: 'vue',
      component: () => import('@/views/VuePage.vue'),
    },
    {
      path: '/react',
      name: 'react',
      component: () => import('@/views/ReactPage.vue'),
    },
  ],
})

export default router
